<template>
  <!-- 此页面的头部组件 -->
  <div id="root">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
export default {
    props:['title'],
    methods: {
        onClickLeft(){
            this.$router.go(-1);
            console.log(1);
        },
    },
};
</script>

<style scoped lang="css">
.van-nav-bar{
    background-color: #D43C33;
}
</style>